package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.pojo.User;
import com.itheima.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: libin
 * @date: 2019/11/17 22:10
 * @version: 1.0
 * @describe:
 */
@RestController
@RequestMapping("/test")
public class TsetController {
    @Reference
    TestService testService;


    @RequestMapping("/getAllUser")
    public List<User> getAllUser() {
      return testService.getAllUser();
    }

}
